const express = require("express")

const router = require("./router/index.js");

const bodyParser = require('body-parser');

const app = express();

app.listen(3000);

app.use( express.static('public') );
//使用body-parser中间件，将post请求的数据解析为对象
app.use(bodyParser.urlencoded({
  extended:false
}));

app.use('/car',router)